// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package edu.uwlax.cs.oayonlinestore.entities;
/**
 * @see edu.uwlax.cs.oayonlinestore.entities.GiftCard
 */
public class GiftCardDaoImpl
    extends edu.uwlax.cs.oayonlinestore.entities.GiftCardDaoBase
{
    /**
     * @see edu.uwlax.cs.oayonlinestore.entities.GiftCardDao#toGiftCardVO(edu.uwlax.cs.oayonlinestore.entities.GiftCard, edu.uwlax.cs.oayonlinestore.vo.GiftCardVO)
     */
    public void toGiftCardVO(
        edu.uwlax.cs.oayonlinestore.entities.GiftCard source,
        edu.uwlax.cs.oayonlinestore.vo.GiftCardVO target)
    {
        // @todo verify behavior of toGiftCardVO
        super.toGiftCardVO(source, target);
    }


    /**
     * @see edu.uwlax.cs.oayonlinestore.entities.GiftCardDao#toGiftCardVO(edu.uwlax.cs.oayonlinestore.entities.GiftCard)
     */
    public edu.uwlax.cs.oayonlinestore.vo.GiftCardVO toGiftCardVO(final edu.uwlax.cs.oayonlinestore.entities.GiftCard entity)
    {
        // @todo verify behavior of toGiftCardVO
        return super.toGiftCardVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private edu.uwlax.cs.oayonlinestore.entities.GiftCard loadGiftCardFromGiftCardVO(edu.uwlax.cs.oayonlinestore.vo.GiftCardVO giftCardVO)
    {
        // @todo implement loadGiftCardFromGiftCardVO
        throw new java.lang.UnsupportedOperationException("edu.uwlax.cs.oayonlinestore.entities.loadGiftCardFromGiftCardVO(edu.uwlax.cs.oayonlinestore.vo.GiftCardVO) not yet implemented.");

        /* A typical implementation looks like this:
        edu.uwlax.cs.oayonlinestore.entities.GiftCard giftCard = this.load(giftCardVO.getId());
        if (giftCard == null)
        {
            giftCard = edu.uwlax.cs.oayonlinestore.entities.GiftCard.Factory.newInstance();
        }
        return giftCard;
        */
    }

    
    /**
     * @see edu.uwlax.cs.oayonlinestore.entities.GiftCardDao#giftCardVOToEntity(edu.uwlax.cs.oayonlinestore.vo.GiftCardVO)
     */
    public edu.uwlax.cs.oayonlinestore.entities.GiftCard giftCardVOToEntity(edu.uwlax.cs.oayonlinestore.vo.GiftCardVO giftCardVO)
    {
        // @todo verify behavior of giftCardVOToEntity
        edu.uwlax.cs.oayonlinestore.entities.GiftCard entity = this.loadGiftCardFromGiftCardVO(giftCardVO);
        this.giftCardVOToEntity(giftCardVO, entity, true);
        return entity;
    }


    /**
     * @see edu.uwlax.cs.oayonlinestore.entities.GiftCardDao#giftCardVOToEntity(edu.uwlax.cs.oayonlinestore.vo.GiftCardVO, edu.uwlax.cs.oayonlinestore.entities.GiftCard)
     */
    public void giftCardVOToEntity(
        edu.uwlax.cs.oayonlinestore.vo.GiftCardVO source,
        edu.uwlax.cs.oayonlinestore.entities.GiftCard target,
        boolean copyIfNull)
    {
        // @todo verify behavior of giftCardVOToEntity
        super.giftCardVOToEntity(source, target, copyIfNull);
    }

}